import { http, jumpExport } from '@/utils/http/axios';

// 获取物流信息列表
export function List(params) {
  return http.request({
    url: '/expressInfo/list',
    method: 'get',
    params,
  });
}

// 删除/批量删除物流信息
export function Delete(params) {
  return http.request({
    url: '/expressInfo/delete',
    method: 'POST',
    params,
  });
}

// 添加/编辑物流信息
export function Edit(params) {
  return http.request({
    url: '/expressInfo/edit',
    method: 'POST',
    params,
  });
}

// 获取物流信息指定详情
export function View(params) {
  return http.request({
    url: '/expressInfo/view',
    method: 'GET',
    params,
  });
}

// 导出物流信息
export function Export(params) {
  jumpExport('/expressInfo/export', params);
}

// 发货
export function ToExpressed(params) {
  return http.request({
    url: '/expressInfo/statusChange',
    method: 'post',
    params,
  });
}
